package org.jeecg.modules.pd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.pd.entity.PdBillNoRule;
import org.jeecg.modules.pd.mapper.PdBillNoRuleMapper;
import org.jeecg.modules.pd.service.IPdBillNoRuleService;
import org.springframework.stereotype.Service;

/**
 * @Description: 单据号生成规则表
 * @Author: jiangxz
 * @Date:   2020-10-26
 * @Version: V1.0
 */
@Service("pdBillNoRuleServiceImpl")
public class PdBillNoRuleServiceImpl extends ServiceImpl<PdBillNoRuleMapper, PdBillNoRule> implements IPdBillNoRuleService {

    @Override
    public String getNextVal(String type) {
        return baseMapper.getNextVal(type);
    }

    @Override
    public void updateValueByType(PdBillNoRule pdBillNoRule) {
        baseMapper.updateValueByType(pdBillNoRule);
    }
}
